Skip to main content

All Questions

0votes
2answers
540views

Upgrading from MVC2 to MVC5 project

Could someone please help me how I can upgrade and MVC2 application to MVC5? Please consider that I had never had any experience with upgrade before. I do not want to do rewrite only upgrade to MVC5. ...
user464291's user avatar
5votes
2answers
38kviews

Cannot implicitly convert type 'System.Web.Mvc.RedirectToRouteResult' to 'System.Web.Mvc.JsonResult'

How can i Redirect To Action from JsonResult to ActionResult but i m getting error. my error is "Cannot implicitly convert type 'System.Web.Mvc.RedirectToRouteResult' to 'System.Web.Mvc.JsonResult'". ...
Dinesh's user avatar
  • 1,007
0votes
1answer
540views

ASP.Net MVC 2 - Code for master page

I am newbie in MVC and trying to create application in asp.net mvc2. For the common header and footer i wants to use master pages which are having dynamic content, Can anyone please tell me where is ...
Harish Bhatt's user avatar
-1votes
2answers
2kviews

How to submit the form using JQuery and not with full postback?

How to submit the form using JQuery and not with full postback ? Right now I am able to submit the form with full postback. But it takes time to respond back. Any help to share the Video tutorial ...
Stack Help's user avatar
0votes
2answers
420views

MVC 2 - Display first result only in for each loop

I've got what appears to be a fairly basic loop: <% foreach (var item in Model.Items.OrderByDescending(b => b.ItemDateTime)) {%> Instead of looping through all the items I just want to ...
CLiown's user avatar
  • 13.9k
0votes
1answer
53views

Typecast two model and Return other model

public static Coupons.Domain.RejectedCoupons CoupontoRej(Coupons.Domain.Coupon coupon) { Coupons.Domain.RejectedCoupons a = coupon; return a; Help me out ...
user1129464's user avatar
-3votes
1answer
929views

Line break in string when the length is more than 10 char

I am working on MVC 3. The problem is that I want to break the string if its length more then 10. The string value coming from data base as User name. I want to apply that string on a image.. Example ...
ZCoder's user avatar
  • 2,349
0votes
1answer
492views

Binding form values to a complex type

I've used the MVC pattern for a while now and have been getting on fine, however I've got totally stuck. I have a view which shows a collection of complex objects, with a partial view as follows: &...
George Duckett's user avatar
7votes
4answers
2kviews

Passing model property expression to view

I want to have a way of getting a view to focus on a particular model property from a controller in a generic way. What i have so far is: Controller: // To become an extension/base class method ...
George Duckett's user avatar
2votes
3answers
252views

Good practice to have a data-only controller in MVC?

I'm using ASP.NET MVC2 and have various controllers in various areas. In many of these I need to select a value from a list of values contained in a database; selecting a product or an employee for ...
George Duckett's user avatar
0votes
1answer
207views

Using a WISON OR200 in web application ( MVC )

Few days ago i bought a WISON OR200 sensor for a web system that i am developing. I used the SDK that sent to me the enterprise and was been testing in a window application and worked fine but i ...
Fausto Carasai's user avatar
2votes
1answer
121views

GET different url based on inputbox

I'm using the asp.net MVC pattern of having a url like controller/action/id. This works fine if I navigate to the url directly. I want to have a page where the user can input the id and click a ...
George Duckett's user avatar
0votes
2answers
187views

How to change Label value in MVC2

In my application (written in c#) I have a textbox and a submit button. If the user clicks "submit" without entering any value, I want him to stay at the same page and display a message saying "Please ...
user990635's user avatar
1vote
1answer
107views

Receiving post from flash in MVC 2

I hope you can help me with this one. I have a flash-movie on my webpage, which makes a post when its done playing. I want to catch that post and update a session. I get the following "post-error" ...
PaludaN's user avatar
0votes
2answers
874views

ASP.NET Email Form Return message after form is submitted

Sorry if this has been addressed. I just can't get it to work. I have a email contact form. I have the form working ok. It is sending an email. However, after the form is submitted I was either a ...
Lars Hovden's user avatar

153050per page
close